home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- Caption = "Non-sizable MDI Child"
- ClientHeight = 2355
- ClientLeft = 1140
- ClientTop = 2985
- ClientWidth = 4200
- Height = 2760
- Left = 1080
- LinkTopic = "Form3"
- MDIChild = -1 'True
- ScaleHeight = 2355
- ScaleWidth = 4200
- Top = 2640
- Width = 4320
- Begin SubClassEZ_demo SubClass1
- Height = 420
- Left = 0
- Top = 0
- Width = 420
- End
- Option Explicit
- Sub Form_Load ()
- ' remove Size command from system menu
- NoSizeMenu (Me.hWnd)
- ' tell SubEZ to capture form messages
- SubClass1.HwndParam = Me.hWnd
- End Sub
- Sub SubClass1_MsgQueue (wnd As Integer, msg As Integer, wp As Integer, lp As Long, retval As Long, doDef As Integer)
- Dim wLo As Integer
- Dim wHi As Integer
- ' get low word of lParam
- wLo = LoWord(lp)
- ' get high word of lParam
- wHi = HiWord(lp)
- ' if cursor is being set...
- If msg = WM_SETCURSOR Then
- ' and it's over the border...
- If wLo >= HTLEFT And wLo <= HTBOTTOMRIGHT Then
- ' tell app cursor is over background
- wLo = HTCLIENT
- lp = MakeLong(wLo, wHi)
- End If
- End If
- End Sub
-